package com.colin.springboot.web;

import com.colin.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * Created by Administrator on 2017/8/3 0003.
 */
@RestController
public class UserController {


    @Autowired
    private UserService userService;

    @RequestMapping("/list")
    public List queryAll(){
        return  userService.queryAll();
    }
}
